home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9839 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 63 |c.Subjec|t: Re: c|
|00000080| 6f 6e 66 75 73 69 6f 6e | 20 62 65 74 77 65 65 6e |onfusion| between|
|00000090| 20 70 75 74 63 68 61 72 | 20 61 6e 64 20 70 72 69 | putchar| and pri|
|000000a0| 6e 74 66 0a 44 61 74 65 | 3a 20 57 65 64 2c 20 31 |ntf.Date|: Wed, 1|
|000000b0| 33 20 4d 61 72 20 31 39 | 39 36 20 31 36 3a 30 33 |3 Mar 19|96 16:03|
|000000c0| 3a 32 33 20 2d 30 36 30 | 30 0a 4f 72 67 61 6e 69 |:23 -060|0.Organi|
|000000d0| 7a 61 74 69 6f 6e 3a 20 | 55 6e 69 76 65 72 73 69 |zation: |Universi|
|000000e0| 74 79 20 6f 66 20 49 6f | 77 61 2c 20 49 6f 77 61 |ty of Io|wa, Iowa|
|000000f0| 20 43 69 74 79 2c 20 49 | 41 2c 20 55 53 41 0a 44 | City, I|A, USA.D|
|00000100| 69 73 74 72 69 62 75 74 | 69 6f 6e 3a 20 77 6f 72 |istribut|ion: wor|
|00000110| 6c 64 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |ld.Messa|ge-ID: <|
|00000120| 50 69 6e 65 2e 41 33 32 | 2e 33 2e 39 31 2e 39 36 |Pine.A32|.3.91.96|
|00000130| 30 33 31 33 31 33 31 31 | 32 30 2e 34 32 36 35 36 |03131311|20.42656|
|00000140| 43 2d 31 30 30 30 30 30 | 40 72 65 64 2e 77 65 65 |C-100000|@red.wee|
|00000150| 67 2e 75 69 6f 77 61 2e | 65 64 75 3e 0a 4e 4e 54 |g.uiowa.|edu>.NNT|
|00000160| 50 2d 50 6f 73 74 69 6e | 67 2d 48 6f 73 74 3a 20 |P-Postin|g-Host: |
|00000170| 72 65 64 2e 77 65 65 67 | 2e 75 69 6f 77 61 2e 65 |red.weeg|.uiowa.e|
|00000180| 64 75 0a 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |du.Mime-|Version:|
|00000190| 20 31 2e 30 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 | 1.0.Con|tent-Typ|
|000001a0| 65 3a 20 54 45 58 54 2f | 50 4c 41 49 4e 3b 20 63 |e: TEXT/|PLAIN; c|
|000001b0| 68 61 72 73 65 74 3d 55 | 53 2d 41 53 43 49 49 0a |harset=U|S-ASCII.|
|000001c0| 58 2d 53 65 6e 64 65 72 | 3a 20 72 6f 62 69 6e 73 |X-Sender|: robins|
|000001d0| 6f 6e 40 72 65 64 2e 77 | 65 65 67 2e 75 69 6f 77 |on@red.w|eeg.uiow|
|000001e0| 61 2e 65 64 75 0a 49 6e | 2d 52 65 70 6c 79 2d 54 |a.edu.In|-Reply-T|
|000001f0| 6f 3a 20 3c 34 69 35 6c | 66 76 24 6c 74 76 40 76 |o: <4i5l|fv$ltv@v|
|00000200| 69 76 61 6c 64 69 2e 74 | 65 6c 65 70 61 63 2e 70 |ivaldi.t|elepac.p|
|00000210| 74 3e 20 0a 0a 4f 6e 20 | 57 65 64 2c 20 31 33 20 |t> ..On |Wed, 13 |
|00000220| 4d 61 72 20 31 39 39 36 | 2c 20 56 4f 52 54 45 58 |Mar 1996|, VORTEX|
|00000230| 20 77 72 6f 74 65 3a 0a | 0a 3e 20 63 32 61 31 39 | wrote:.|.> c2a19|
|00000240| 32 40 75 67 72 61 64 2e | 63 73 2e 75 62 63 2e 63 |2@ugrad.|cs.ubc.c|
|00000250| 61 20 28 4b 61 7a 69 6d | 69 72 20 4b 79 6c 68 65 |a (Kazim|ir Kylhe|
|00000260| 6b 75 29 20 77 72 6f 74 | 65 3a 0a 3e 20 3e 23 69 |ku) wrot|e:.> >#i|
|00000270| 6e 63 6c 75 64 65 20 3c | 73 74 64 69 6f 2e 68 3e |nclude <|stdio.h>|
|00000280| 0a 3e 20 3e 69 6e 74 20 | 6d 61 69 6e 28 29 0a 3e |.> >int |main().>|
|00000290| 20 3e 7b 0a 3e 20 3e 09 | 72 65 74 75 72 6e 20 30 | >{.> >.|return 0|
|000002a0| 3b 09 2f 2a 20 61 6c 6c | 20 43 20 70 72 6f 67 72 |;./* all| C progr|
|000002b0| 61 6d 73 20 6e 65 65 64 | 20 74 6f 20 72 65 74 75 |ams need| to retu|
|000002c0| 72 6e 20 61 6e 20 65 78 | 69 74 20 73 74 61 74 75 |rn an ex|it statu|
|000002d0| 73 09 2a 2f 0a 3e 20 3e | 7d 0a 3e 20 0a 3e 20 4e |s.*/.> >|}.> .> N|
|000002e0| 6f 20 74 68 65 79 20 64 | 6f 6e 27 72 0a 3e 20 0a |o they d|on'r.> .|
|000002f0| 3e 20 4a 75 73 74 20 73 | 74 61 72 20 77 69 74 68 |> Just s|tar with|
|00000300| 20 20 76 6f 69 64 20 6d | 61 69 6e 28 76 6f 69 64 | void m|ain(void|
|00000310| 29 20 61 6e 64 20 79 6f | 75 20 6e 65 65 64 20 74 |) and yo|u need t|
|00000320| 6f 20 72 65 74 75 72 6e | 20 61 6e 79 20 76 61 6c |o return| any val|
|00000330| 75 65 0a 0a 20 20 49 6e | 20 74 68 65 20 66 69 72 |ue.. In| the fir|
|00000340| 73 74 20 70 6c 61 63 65 | 2c 20 79 6f 75 20 64 69 |st place|, you di|
|00000350| 64 6e 27 74 20 68 61 76 | 65 20 74 6f 20 71 75 6f |dn't hav|e to quo|
|00000360| 74 65 20 74 68 65 20 5f | 77 68 6f 6c 65 5f 20 70 |te the _|whole_ p|
|00000370| 6f 73 74 20 74 6f 20 61 | 64 64 20 0a 74 68 69 73 |ost to a|dd .this|
|00000380| 2e 20 20 49 6e 20 74 68 | 65 20 73 65 63 6f 6e 64 |. In th|e second|
|00000390| 20 70 6c 61 63 65 2c 20 | 76 6f 69 64 20 6d 61 69 | place, |void mai|
|000003a0| 6e 28 29 20 69 73 20 75 | 6e 64 65 66 69 6e 65 64 |n() is u|ndefined|
|000003b0| 20 62 79 20 74 68 65 20 | 43 20 73 74 61 6e 64 61 | by the |C standa|
|000003c0| 72 64 2e 20 20 0a 49 74 | 20 6d 69 67 68 74 20 62 |rd. .It| might b|
|000003d0| 65 20 61 6c 6c 6f 77 65 | 64 20 6f 6e 20 73 6f 6d |e allowe|d on som|
|000003e0| 65 20 70 6c 61 74 66 6f | 72 6d 73 2c 20 62 75 74 |e platfo|rms, but|
|000003f0| 20 69 74 20 69 73 20 6e | 6f 74 20 70 6f 72 74 61 | it is n|ot porta|
|00000400| 62 6c 65 2e 20 20 46 69 | 6e 61 6c 6c 79 2c 20 79 |ble. Fi|nally, y|
|00000410| 6f 75 20 0a 6d 65 61 6e | 74 20 22 61 6e 64 20 79 |ou .mean|t "and y|
|00000420| 6f 75 20 5f 77 69 6c 6c | 5f 20 72 65 74 75 72 6e |ou _will|_ return|
|00000430| 20 61 6e 20 5f 61 72 62 | 69 74 72 61 72 79 5f 20 | an _arb|itrary_ |
|00000440| 76 61 6c 75 65 22 20 66 | 6f 72 20 74 68 6f 73 65 |value" f|or those|
|00000450| 20 63 6f 6d 70 69 6c 65 | 72 73 20 0a 74 68 61 74 | compile|rs .that|
|00000460| 20 73 75 70 70 6f 72 74 | 20 76 6f 69 64 20 6d 61 | support| void ma|
|00000470| 69 6e 28 29 2e 20 20 54 | 68 65 20 6c 6f 61 64 65 |in(). T|he loade|
|00000480| 72 20 65 78 70 65 63 74 | 73 20 61 6e 20 69 6e 74 |r expect|s an int|
|00000490| 65 67 65 72 20 72 65 74 | 75 72 6e 20 63 6f 64 65 |eger ret|urn code|
|000004a0| 20 0a 5f 72 65 67 61 72 | 64 6c 65 73 73 5f 20 6f | ._regar|dless_ o|
|000004b0| 66 20 68 6f 77 20 79 6f | 75 20 64 65 63 6c 61 72 |f how yo|u declar|
|000004c0| 65 20 6d 61 69 6e 28 29 | 2c 20 61 6e 64 20 69 66 |e main()|, and if|
|000004d0| 20 79 6f 75 20 64 6f 6e | 27 74 20 73 75 70 70 6c | you don|'t suppl|
|000004e0| 79 20 6f 6e 65 20 74 68 | 65 6e 20 0a 69 74 20 72 |y one th|en .it r|
|000004f0| 65 74 75 72 6e 73 20 77 | 68 61 74 65 76 65 72 20 |eturns w|hatever |
|00000500| 67 61 72 62 61 67 65 20 | 77 61 73 20 69 6e 20 74 |garbage |was in t|
|00000510| 68 65 20 73 70 61 63 65 | 20 69 74 20 75 73 65 64 |he space| it used|
|00000520| 20 74 6f 20 68 6f 6c 64 | 20 74 68 65 20 72 65 74 | to hold| the ret|
|00000530| 75 72 6e 20 0a 63 6f 64 | 65 2c 20 77 69 74 68 20 |urn .cod|e, with |
|00000540| 77 68 61 74 65 76 65 72 | 20 61 72 62 69 74 72 61 |whatever| arbitra|
|00000550| 72 79 20 72 65 73 75 6c | 74 73 20 74 68 61 74 20 |ry resul|ts that |
|00000560| 70 72 6f 64 75 63 65 73 | 2e 20 20 49 66 20 79 6f |produces|. If yo|
|00000570| 75 20 61 72 65 20 63 65 | 72 74 61 69 6e 20 0a 74 |u are ce|rtain .t|
|00000580| 68 61 74 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |hat the |program |
|00000590| 77 69 6c 6c 20 61 6c 77 | 61 79 73 20 73 75 63 63 |will alw|ays succ|
|000005a0| 65 65 64 2c 20 6a 75 73 | 74 20 72 65 74 75 72 6e |eed, jus|t return|
|000005b0| 20 30 3b 20 75 6e 63 6f | 6e 64 69 74 69 6f 6e 61 | 0; unco|nditiona|
|000005c0| 6c 6c 79 20 61 74 20 0a | 74 68 65 20 65 6e 64 2e |lly at .|the end.|
|000005d0| 0a 0a 2f 2a 2a 4a 61 6d | 65 73 20 52 6f 62 69 6e |../**Jam|es Robin|
|000005e0| 73 6f 6e 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |son*****|********|
|000005f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 20 20 20 20 20 20 |********|** |
|00000600| 20 20 20 20 20 20 0a 20 | 20 22 49 66 20 61 20 66 | . | "If a f|
|00000610| 61 74 61 6c 20 65 72 72 | 6f 72 20 6f 63 63 75 72 |atal err|or occur|
|00000620| 73 2c 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 73 |s, the p|rogram s|
|00000630| 68 6f 75 6c 64 20 6e 6f | 74 20 62 65 20 61 6c 6c |hould no|t be all|
|00000640| 6f 77 65 64 20 74 6f 20 | 63 6f 6e 74 69 6e 75 65 |owed to |continue|
|00000650| 2e 22 0a 20 2d 2d 20 4f | 72 61 63 6c 65 20 50 72 |.". -- O|racle Pr|
|00000660| 6f 2a 43 20 55 73 65 72 | 27 73 20 47 75 69 64 65 |o*C User|'s Guide|
|00000670| 20 20 20 20 20 20 20 20 | 20 2a 2a 2a 2a 2a 2a 2a | | *******|
|00000680| 2a 2a 2a 2a 2a 2a 6a 61 | 6d 65 73 2d 72 6f 62 69 |******ja|mes-robi|
|00000690| 6e 73 6f 6e 40 75 69 6f | 77 61 2e 65 64 75 2a 2a |nson@uio|wa.edu**|
|000006a0| 2f 0a 0a | |/.. | |
+--------+-------------------------+-------------------------+--------+--------+